<?php
 require_once('pclzip.lib.php');   
 
 
 $archive = new PclZip('db_backups'.date('Y-m-d').'.zip');
 $v_list = $archive->create('_db_backups', PCLZIP_OPT_REMOVE_PATH,'_db_backups');
 if ($v_list == 0) {   
	 die("Error : ".$archive->errorInfo(true));   
 }   
 
 
// $archive = new PclZip('db_backups.zip');   
//if ($archive->extract(PCLZIP_OPT_PATH, '_db_backups') == 0) {   
//	die("Error : ".$archive->errorInfo(true));   
//}   



 ?>